﻿using System;

namespace K9Nano.UI
{
    public class BooleanInputValidator : IInputValidator
    {
        public bool IsValid(string value)
        {
            return string.Compare("true", value, StringComparison.OrdinalIgnoreCase) >= 0
                   || string.Compare("false", value, StringComparison.OrdinalIgnoreCase) >= 0;
        }
    }
}